package cn.yunyichina.provider.pay.wechat.constant;

/**
 * Created by Lullaby on 2016/10/12.
 */
public enum ResponseEnum implements cn.yunyichina.provider.framework.common.ResponseEnum {

    WECHAT_INVALID_SIGN("5100", "微信验签失败"),

    WECHAT_PAY_FAIL("5101", "微信支付失败"),
    WECHAT_PAY_TRADE_FAIL("5102", "微信支付交易失败"),
    WECHAT_PAY_EXCEPTION("5103", "微信支付异常"),

    WECHAT_REFUND_FAIL("5131", " 微信退费失败"),
    WECHAT_REFUND_TRADE_FAIL("5132", " 微信退费交易失败"),
    WECHAT_REFUND_EXCEPTION("5133", " 微信退费异常"),

    WECHAT_ACCESS_TOKEN_FAILURE("5191", "微信获取ACCESS_TOKEN失败"),
    WECHAT_ACCESS_TOKEN_EXCEPTION("5192", "微信获取ACCESS_TOKEN异常"),
    WECHAT_APPLET_OPENID_FAILURE("5193", "微信获取小程序OPENID失败"),
    WECHAT_APPLET_OPENID_EXCEPTION("5194", "微信获取小程序OPENID异常"),
    WECHAT_JSAPI_TICKET_FAILURE("5195", "微信获取JSAPI_TICKET失败"),
    WECHAT_JSAPI_TICKET_EXCEPTION("5196", "微信获取JSAPI_TICKET异常"),
    ;

    private String code;

    private String message;

    ResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

}
